-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[MISC] Fix gltf Loading for URDF #1857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
can you add a unit test? Just for this scene and compare the image pixel? |
|
how to define the principal axes? Maybe we can find the longest dimension in an object. I don't have a strong opinion though. |
You ask trimesh to do it for you :)
|
8899341 to
58218e5
Compare
c99fae5 to
8c35d55
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change causes allegro_hand_right_glb.urdf to be loaded with flipped axes. I see that there is the parse_glb_with_zup option in gs.morphs.Mesh but no such option seems to be exposed for gs.morphs.URDF
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Is this PR to fix Allegro hand? There are two versions of this hand?
#1820
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an option for URDF: #1938
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah seems that there are different versions floating around. There is no "fixing" the hand, just need to make it clear know what the default convention is and provide an option to load it with different axes.
Thanks @ACMLCZH for the quick PR
When URDF loads gltf meshes, it uses "y-up" by default, but it currently loaded as "z-up" now.

Resolves #1820